Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

platforms/common/uORB/uORBManager.cpp: Fix a race condition in uORB c… #643

Merged
merged 1 commit into from
Feb 21, 2024

Conversation

jlaitine
Copy link

…allback unregistration

In protected modes, the callback needs to be removed from the processes list of callbacks before unregistering it from the device node. Otherwise there is a risk for callback thread trying to access a callback which was already removed from the publishing node's list.

…allback unregistration

In protected modes, the callback needs to be removed from the processes list of callbacks before
unregistering it from the device node. Otherwise there is a risk for callback thread trying to
access a callback which was already removed from the publishing node's list.

Signed-off-by: Jukka Laitinen <[email protected]>
@jlaitine jlaitine requested a review from pussuw February 21, 2024 08:06
@jlaitine jlaitine merged commit 093c7bf into main Feb 21, 2024
23 checks passed
@jlaitine jlaitine deleted the fix_race_in_uorb_unregister branch February 21, 2024 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants